* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #667eea;
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.login-tip {
    text-align: center;
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;

.login-subtitle {
    color: white;
    font-size: 1.2rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    opacity: 0.9;
}
}

/* 主页面样式 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

#searchInput {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 101;
    max-height: 300px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-id {
    font-weight: bold;
    color: #667eea;
}

.search-title {
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.search-category {
    font-size: 0.8rem;
    color: #888;
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

.search-category.multiple {
    background-color: #FFE082;
    color: #F57C00;
    font-weight: bold;
}

.search-no-results {
    padding: 12px 15px;
    color: #999;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: bold;
    color: #667eea;
}

.btn-tips {
    padding: 8px 20px;
    background: #FF9800;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-tips:hover {
    background: #F57C00;
    transform: translateY(-1px);
}

.btn-data {
    padding: 8px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-data:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.btn-logout {
    padding: 8px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

.btn-calendar {
    padding: 8px 20px;
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-calendar:hover {
    background: linear-gradient(135deg, #AB47BC 0%, #8E24AA 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

/* 数据提醒横幅 */
.data-notice {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE69C 100%);
    border-left: 4px solid #FFC107;
    margin: 1rem auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

.data-notice.hidden {
    display: none;
}

.notice-content {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

.notice-icon {
    font-size: 1.5rem;
}

.notice-text {
    flex: 1;
    color: #856404;
    font-weight: 600;
}

.notice-btn {
    padding: 8px 16px;
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.notice-btn:hover {
    background: #FFB300;
    transform: translateY(-1px);
}

.notice-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #856404;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.notice-close:hover {
    background: rgba(0,0,0,0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 统计面板 */
.stats-panel {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

/* 轮次选择器 */
.round-selector {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.round-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.round-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.round-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* 分类容器 */
.categories-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.category-card.active {
    border-color: #667eea;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.3);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.category-progress {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: bold;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

/* 题目列表 */
.problems-container {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 2rem;
}

.problems-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.problem-wrapper {
    position: relative;
    min-height: 80px;
}

.problem-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #666;
    padding: 0.8rem;
}

.problem-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 0.3rem;
}

.problem-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
}

.problem-title {
    font-size: 0.75rem;
    color: #555;
    line-height: 1.2;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.problem-item:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.problem-item.solved {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.problem-item.solved .problem-number {
    color: white;
}

.problem-item.solved .problem-title {
    color: rgba(255, 255, 255, 0.95);
}

.problem-item.solved::after {
    content: ' ✓';
    margin-left: 2px;
}

.problem-item.highlight {
    box-shadow: 0 0 0 3px #FFC107;
    border-color: #FFC107;
    transform: scale(1.05);
}

.copy-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
    padding: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.problem-wrapper:hover .copy-btn {
    display: flex;
}

.copy-btn:hover {
    background: #667eea;
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.link-btn {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #FF9800;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
    padding: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.problem-wrapper:hover .link-btn {
    display: flex;
}

.link-btn:hover {
    background: #FF9800;
    transform: scale(1.1);
}

.link-btn:active {
    transform: scale(0.95);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .round-selector {
        flex-direction: column;
    }

    .round-btn {
        min-width: 100%;
    }

    .categories-container {
        grid-template-columns: 1fr;
    }

    .problems-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card, .problem-item {
    animation: fadeIn 0.3s ease-out;
}


/* 数据管理弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    color: #667eea;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.data-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.data-info p {
    margin: 0.8rem 0;
    line-height: 1.6;
    color: #555;
}

.data-info strong {
    color: #333;
}

.data-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.action-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.export-btn:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.import-btn:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.btn-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.btn-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}

.btn-desc {
    font-size: 0.9rem;
    color: #888;
}

/* 响应式调整 - 弹窗和通知 */
@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .notice-btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-header, .modal-body {
        padding: 1.5rem;
    }
}


/* 刷题技巧弹窗 */
.tips-modal {
    max-width: 800px;
}

.tips-intro {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #FF9800;
}

.tips-intro p {
    margin: 0;
    color: #E65100;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
}

.tip-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.tip-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tip-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
}

.tip-badge.round1 {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.tip-badge.round2 {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.tip-badge.round3 {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.tip-badge.round4 {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.tip-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.tip-content {
    margin: 0.8rem 0;
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.tip-content strong {
    color: #667eea;
}

.tip-content .highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}


/* 日历弹窗样式 */
.calendar-modal {
    max-width: 750px;
}

.calendar-nav-bar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-nav-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.calendar-nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.calendar-nav-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    font-weight: bold;
}

.calendar-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.current-month {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    min-width: 150px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
    padding: 0.8rem;
    background: white;
    border-radius: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: #f8f9fa;
    padding: 0.4rem;
}

.calendar-day:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
    opacity: 0.5;
}

.calendar-day.today {
    border-color: #FF9800;
    border-width: 3px;
    font-weight: bold;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

/* 不同打卡数量的颜色 */
.calendar-day.low-activity {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    color: #2E7D32;
    border-color: #81C784;
}

.calendar-day.medium-activity {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
    color: white;
    border-color: #4CAF50;
}

.calendar-day.high-activity {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    border-color: #2E7D32;
    font-weight: bold;
}

.calendar-day-number {
    font-weight: bold;
    font-size: 1rem;
}

.calendar-day-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 2px 5px;
    border-radius: 5px;
    margin-top: 3px;
    font-weight: 600;
}

.calendar-day.medium-activity .calendar-day-count,
.calendar-day.high-activity .calendar-day-count {
    background: rgba(255, 255, 255, 0.95);
    color: #2E7D32;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid transparent;
}

.legend-dot.no-activity {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.legend-dot.low-activity {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    border-color: #81C784;
}

.legend-dot.medium-activity {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
    border-color: #4CAF50;
}

.legend-dot.high-activity {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    border-color: #2E7D32;
}

.legend-dot.today {
    background: #FF9800;
    border-color: #FF9800;
}

/* 日历操作按钮 */
.calendar-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-month-detail {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-month-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-month-detail:active {
    transform: translateY(0);
}

/* 月度详情弹窗 */
.month-detail-modal {
    max-width: 800px;
}

.month-detail-content {
    max-height: 65vh;
    overflow-y: auto;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

.problem-dates {
    font-size: 0.8rem;
    color: #888;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
}

/* 日期详情弹窗 */
.date-detail-modal {
    max-width: 550px;
}

.date-detail-content {
    max-height: 60vh;
    overflow-y: auto;
}

.round-section {
    margin-bottom: 2rem;
}

.round-title {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: white;
}

.round-title.round1 {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.round-title.round2 {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.round-title.round3 {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.round-title.round4 {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.problems-list {
    display: grid;
    gap: 0.8rem;
}

.problem-detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s;
    position: relative;
}

.problem-detail-item:hover {
    background: #e3f2fd;
    transform: translateX(3px);
}

.problem-number {
    font-size: 1rem;
    font-weight: bold;
    color: #667eea;
    min-width: 55px;
    flex-shrink: 0;
}

.problem-title-detail {
    flex: 1;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
}

.problem-category {
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.problem-difficulty {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.copy-problem-btn {
    background: white;
    border: 2px solid #667eea;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.copy-problem-btn:hover {
    background: #667eea;
    transform: scale(1.1);
}

.copy-problem-btn.copied {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.link-problem-btn {
    background: white;
    border: 2px solid #FF9800;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    margin-left: 0.5rem;
}

.link-problem-btn:hover {
    background: #FF9800;
    transform: scale(1.1);
}

.link-problem-btn:active {
    transform: scale(0.95);
}

.problem-difficulty.easy {
    background: #C8E6C9;
    color: #2E7D32;
}

.problem-difficulty.medium {
    background: #FFE082;
    color: #F57C00;
}

.problem-difficulty.hard {
    background: #FFCDD2;
    color: #C62828;
}

/* 响应式调整 - 日历 */
@media (max-width: 768px) {
    .calendar-modal {
        max-width: 95%;
    }

    .calendar-grid {
        gap: 0.4rem;
        padding: 0.8rem;
    }

    .calendar-day {
        font-size: 0.8rem;
        padding: 0.25rem;
    }

    .calendar-day-number {
        font-size: 0.85rem;
    }

    .calendar-day-count {
        font-size: 0.6rem;
        padding: 1px 3px;
    }

    .calendar-legend {
        gap: 0.8rem;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .date-detail-modal {
        max-width: 95%;
    }

    .problem-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 分类选择弹窗 */
.category-choices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}

.choice-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.choice-round {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
}

.choice-round.round1 { background: #4CAF50; }
.choice-round.round2 { background: #2196F3; }
.choice-round.round3 { background: #FF9800; }
.choice-round.round4 { background: #f44336; }

.choice-category {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}
